package com.itasura.delegate;

import lombok.Setter;

/**
 * @author sailor wang
 * @date 2018/11/6 1:54 PM
 * @description
 */
@Setter
public class BusinessLookup {
    private EjbService ejbService;

    private JmsService jmsService;

    public BusinessService getBusinessService(ServiceType type) {
        if (ServiceType.EJB.equals(type)) {
            return ejbService;
        } else {
            return jmsService;
        }
    }


}